package org.github.manx98.jlibhac.fssystem;

public enum PartitionFileSystemType {
    Standard("PFS0", 24),
    Hashed("HFS0", 64);
    public final String value;
    public final int entrySize;

    PartitionFileSystemType(String value, int entrySize) {
        this.value = value;
        this.entrySize = entrySize;
    }

    public static PartitionFileSystemType convert(String value) {
        switch (value) {
            case "PFS0":
                return Standard;
            case "HFS0":
                return Hashed;
            default:
                return null;
        }
    }
}
